<?php

namespace App\Models\Fund;

use App\Models\BaseModel;
/**
 * 资金账户
 *
 * Class Withdraw
 * @package App\Models\Fund
 */
class Withdraw extends BaseModel
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'withdraw';

    /**
     * Indicates if the model should be timestamped.
     * @var bool
     */
    public $timestamps = false;

    public $appends = ['status_text'];
    public $statusText = [0=>'等待', 1=>'审核成功', 2=>'审核失败', 3=>'转账失败', 4=>'转账完成'];
     public function getUserInfoAttribute($value)
    {
        return json_decode($value, true);
    }
     public function getCardInfoAttribute($value)
    {
        return json_decode($value, true);
    }
      public function getReviewInfoAttribute($value)
    {
        return json_decode($value, true);
    }
     public function getTransferInfoAttribute($value)
    {
        return json_decode($value, true);
    }
    public function setUserInfoAttribute($value)
    {
        return json_encode($value, true);
    }
     public function setCardInfoAttribute($value)
    {
        return json_encode($value, true);
    }
     public function setReviewInfoAttribute($value)
    {
        return json_encode($value, true);
    }
    public function setTransferInfoAttribute($value)
    {
        return json_encode($value, true);
    }



   
}
